package com.dji.custom.model.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("expand_media_file")
public class ExpandMediaFileEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private String id;

    /** 图片0 视频1 */
    @TableField(value = "type")
    private Long type;

    /** 航线id */
    @TableField(value = "wayline_id")
    private String waylineId;

    /** 任务id */
    @TableField(value = "job_id")
    private String jobId;

    /** 设备sn码 */
    @TableField(value = "device_sn")
    private String deviceSn;

    /** 设备名称 */
    @TableField(value = "device_name")
    private String deviceName;

    /** 文件名称 */
    @TableField(value = "file_name")
    private String fileName;

    /** 文件路径 */
    @TableField(value = "file_path")
    private String filePath;

    /** 文件路径 */
    @TableField(value = "object_key")
    private String objectKey;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    public ExpandMediaFileEntity(Long type, String waylineId, String jobId,String deviceSn
            ,String deviceName,String fileName, String filePath, String objectKey){
        this.type = type;
        this.waylineId = waylineId;
        this.jobId = jobId;
        this.deviceSn = deviceSn;
        this.deviceName = deviceName;
        this.fileName = fileName;
        this.filePath = filePath;
        this.objectKey = objectKey;
    }
}
